package com.zcy.service.impl;

import com.zcy.annotation.HessianIgnore;
import com.zcy.annotation.HessianService;
import com.zcy.service.IUserService;

/**
 * Created by join on 2017/6/21.
 */
@HessianService(value = "/userapi", version = "1.0.1", isSingle = true, interf = IUserService.class)
//@Service
public class UserServiceImpl implements IUserService{

    private int count = 0;

    public String sayHello(String msg) {
        count ++;
        System.out.println(count);
        return "张楚阳" + count;
    }

    @HessianIgnore
    public String sayGoodBye(String msg) {
        return "再见";
    }
}
